import { IForm } from '@/baseUi/from'

const searchFormConfig: IForm = {
  labelWidth: '90px',
  itemStyle: {
    padding: '5px 40px'
  },
  colLayout: {
    xl: 8, //>1920px 4个
    lg: 8,
    md: 12,
    sm: 24,
    xs: 24
  },
  formItems: [
    { field: 'id', type: 'input', label: 'id', placeholder: '请输入id' },
    { field: 'name', type: 'input', label: 'name', placeholder: '请输入姓名' },
    {
      field: 'realname',
      type: 'input',
      label: '真实姓名',
      placeholder: '请输入真实姓名'
    },
    {
      field: 'cellphone',
      type: 'password',
      label: '电话号码',
      placeholder: '请输入电话号码'
    },
    {
      field: 'enable',
      type: 'select',
      label: '用户状态',
      placeholder: '请选择用户状态',
      options: [
        {
          label: '可用',
          value: 1
        },
        {
          label: '禁用',
          value: 2
        }
      ]
    },
    {
      field: 'createAt',
      type: 'datepicker',
      label: '创建时间',
      otherOptions: {
        startPlaceholder: '开始时间',
        endPlaceholder: '结束时间',
        type: 'daterange'
      }
    }
  ]
}

export { searchFormConfig }
